package com.java.tutorials.designpattern.behavioral.command;

//开灯命令：
public class LightOnCommand implements Command {
    private Light myLight;
    public LightOnCommand (Light L) {
        myLight = L;
    }
    public void execute() {
        myLight.turnOn();
    }
}
